
import fly from '../utils/request'


export function pushProjects(data = {}) {
  return fly.request('api/fi/project/list', data, {
    method: 'GET'
  })
}

export function pushMaintains(data = {}) {
  return fly.request('api/system/dict-data/listTree', data, {
    method: 'GET'
  })
}
export function pushTasks(data = {}) {
  return fly.request('/api/push/tasks', data, {
    method: 'POST'
  })
}

export function myPushTasks(data = {}) {
  return fly.request('/api/push/my/tasks', data, {
    method: 'POST'
  })
}


export function doAddTask(data = {}) {
  return fly.request('api/fi/coreTask/create', data, {
    method: 'POST'
  })
}

export function taskConfirm(data = {}) {
  return fly.request('/api/push/task/confirm', data, {
    method: 'POST'
  })
}

export function taskBack(data = {}) {
  return fly.request('/api/push/task/back', data, {
    method: 'POST'
  })
}

export function taskSons(data = {}) {
  return fly.request('/api/push/task/sons', data, {
    method: 'POST'
  })
}